package com.zw.design.pattern.creational.builder;

/**
 * 教练类
 */
public class Coach {
    private  CourseBuilder courseBuilder;

    public void setCourseBuilder(CourseBuilder courseBuilder) {
        this.courseBuilder = courseBuilder;
    }

    public Course getCourse( String courseName,
             String coursePPT,
             String courseVideo,
             String courseArticle,
            //question and answer
             String courseOA){
         this.courseBuilder.buildCourseName(courseName);
         this.courseBuilder.buildCourseOA(courseOA);
         this.courseBuilder.buildCourseArticle(courseArticle);
         this.courseBuilder.buildCoursePPT(coursePPT);
         this.courseBuilder.buildCourseVideo(courseVideo);
         return this.courseBuilder.buildCourse();

    }

}
